<?php
/**
 * CreateTime: 2022/5/26 14:16
 */

namespace App\Http\Requests\NewContract;

use App\Http\Requests\BaseRequests;

class AddFulfillmentPost extends BaseRequests
{

    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'contract_id' => "required",
            'fulfillment_content' => "required",
//            'fulfillment_start_time' => "required",
        ];
    }

    public function messages()
    {
        return [
            'contract_id.required' => "绑定合同不能为空",
            'fulfillment_content.required' => "履约内容不能为空",
//            'fulfillment_start_time.required' => "履约开始时间不能为空",
//            'fulfillment_end_time.required' => "履约截止日期不能为空",
        ];
    }
}